<!-- 外部引入
    <script src="路径"></script>
-->



<!-- 指令 
    console.log()       打印
-->






<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JS引入方式</title>

    <script src="/JS/外部js.js"></script>

    <script>
        console.log("头部js")
    </script>

</head>

<body>

    <script>
        console.log("身体js")
    </script>

    <script src="/JS/外部js.js"></script>


</body>

</html>